package nl.memedefense.monster;

import java.util.ArrayList;
import java.util.List;

/**
 * A wave is a group of {@link Monster}s that the player needs to defeat.
 */
public class Wave {

    private List<Monster> monsters;
    private int number;

    /**
     * Constructs a new Wave with a given wave number.
     *
     * @param number Number of the wave.
     */
    public Wave(int number) {
        this.number = number;
        this.monsters = new ArrayList<Monster>();
    }

    /**
     * Adds monsters to the wave.
     *
     * @param monsters The {@link Monster}s to add.
     */
    public void addMonstersToWave(List<Monster> monsters)  {
        this.monsters.addAll(monsters);
    }

    public int getNumber() {
        return number;
    }

    public List<Monster> getMonsters() {
        return monsters;
    }
}
